<?php 
session_start();
if(isset($_SESSION['uid'])){
    unset($_SESSION['uid']);
    unset($_SESSION['uname']);
    $_SESSION = array();
    session_destroy();
    header("Location:login.html");
}?>


